package com.qcby.service.Impl;

import com.qcby.dao.TeacherPlanCourseMapper;
import com.qcby.entity.TeacherPlanCourse;
import com.qcby.service.TeacherPlanCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("teacherPlanCourseService")
public class TeacherPlanCourseServiceImpl implements TeacherPlanCourseService {
    @Autowired
    private TeacherPlanCourseMapper teacherPlanCourseMapper;

    @Override
    public int insert( Integer course_no,Integer tea_account) {
        return teacherPlanCourseMapper.insert(course_no,tea_account);
    }

    @Override
    public List<TeacherPlanCourse> selectByPrimaryKey(Integer teacher_id) {
        return teacherPlanCourseMapper.selectByPrimaryKey(teacher_id);
    }

    @Override
    public int delete(Integer course_no) {
        return teacherPlanCourseMapper.delete(course_no);
    }

    @Override
    public Integer find(Integer tea_account, Integer course_no) {
        //System.out.println("我运行哒结果"+teacherPlanCourseMapper.find(tea_account,course_no));
        return teacherPlanCourseMapper.find(tea_account,course_no);
    }

    @Override
    public Integer findTime(String course_start,Integer tea_account) {
        return teacherPlanCourseMapper.findTime(course_start,tea_account);
    }

}
